<?php

/*

Create club (club_create.php)

*/

$page_title = "Create a club";
$rank_check = 1;
include "header.inc.php";
$game=$_GET['game'];

$check = fetch("SELECT id FROM clubs2 WHERE owner = '$userid' AND game = '$game'");
if ($check[id])
{
	die(header(error("club.php?game=$game","You can only have one club.")));
}

echo $openHTML;

ECHO <<<END

<P><FORM ACTION="$base_url/club_create.pro.php?game=$game" METHOD=POST>
   <CENTER><FONT SIZE="+1"><B>Create a Club</B></FONT>

   <P><TABLE CELLSPACING=0 CELLPADDING=0 WIDTH="95%">
      <TR>
         <TD WIDTH=145 HEIGHT=18>
            <P><FONT SIZE="-1" COLOR=\"$topAndBottomBG\"><B>Club Name:</B></FONT></P>
         </TD>
         <TD>
            <P ALIGN=right><INPUT TYPE=text NAME="club_name" VALUE="" SIZE=40 MAXLENGTH=24></P>
         </TD>
      </TR>
      <TR>
         <TD WIDTH=145 HEIGHT=18>
            <P><FONT SIZE="-1" COLOR=\"$topAndBottomBG\"><B>Club Motto:</B></FONT></P>
         </TD>
         <TD>
            <P ALIGN=right><INPUT TYPE=text NAME="club_motto" VALUE="" SIZE=40 MAXLENGTH=64></P>
         </TD>
      </TR>
      <TR>
         <TD WIDTH=145 HEIGHT=18>
            <P><FONT SIZE="-1" COLOR=\"$topAndBottomBG\"><B>Private Club?</B></FONT></P>
         </TD>
         <TD>
            <P ALIGN=right><INPUT TYPE=checkbox NAME=privacy VALUE=1></P>
         </TD>
      </TR>
      <TR>
         <TD COLSPAN=2>
            <CENTER><FONT SIZE="-2"><I>Check only if you want this
            club to be private.<BR>
            Private means ONLY people with invitations can join. This
            can be changed :)<br></I></FONT></CENTER>
         </TD>
      </TR>
      <TR>
         <TD WIDTH=145>
            <P><FONT SIZE="-1" COLOR=\"$topAndBottomBG\"><B>Brief Description:</B></FONT></P>
         </TD>
         <TD>
            <P ALIGN=right><TEXTAREA NAME=description ROWS=10 COLS=60 WRAP=virtual>Use this space to give a brief description of your club. It will appear on your club's home page. Make sure it is 10000 characters or less.</TEXTAREA><br></P>
         </TD>
      </TR>
      <TR>
         <TD WIDTH=145>
            <P><FONT SIZE="-1" COLOR=\"$topAndBottomBG\"><B>Enter Keywords:</B></FONT></P>
         </TD>
         <TD>
            <P ALIGN=right><TEXTAREA NAME=keywords ROWS=5 COLS=60 WRAP=virtual>Enter keywords to help people find your club. Seperate each word or group of words by commas.

Ex: fun, free stuff, contests, help</TEXTAREA><br></P>
         </TD>
      </TR>
   </TABLE>
    <INPUT TYPE=submit NAME=submit VALUE="Create My Club"></CENTER>
</FORM></P>

END;

echo $closeHTML;

?>